<!DOCTYPE html>
<html lang="zh-CN">
  <head>
  	<!--定义好页面编码 -->
    <meta charset="utf-8">  
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--描述：这里定义好移动端的自适应-->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 模板</title>
    <!-- 引入好Bootstrap css样式文件 -->
    <link href="css/bootstrap.css" rel="stylesheet">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
    <!--描述：引入js文件 记住一定要先引入JQuery的支持-->
    <script src="js/jquery-1.12.4.js"></script>
    <!-- 引入bootStrap的js文件-->
    <script src="js/bootstrap.js"></script>
  </head>
  <body>
  	<!-- 测试下拉菜单的示例-->
  	<div class="container">
  			<div class="row" style="margin-top: 150px;">
  					<div class="col-md-6">
  						<!--描述：定义下拉菜单区域 -->
  						<div class="dropdown ">
  								<button id="mybtn" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
  										<span class="glyphicon glyphicon-home"></span>&nbsp;DropDown&nbsp;<span class="caret"></span>
  								</button>
  										<ul class="dropdown-menu">
  											<li><a href="#"><span class="text-info">个人信息</span></a></li>
  											<li><a href="#"><span class="text-info">个人设置</span></a></li>
  											<li class="divider"></li>
  											<li><a href="#"><span class="text-info">登出</span></a></li>
  										</ul>
  						</div>
  					</div>
  					<div class="col-md-6 col-md-pull-4">
  						 <div class="dropup">
  								<button id="mybtn2" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
  										<span class="glyphicon glyphicon-home"></span>&nbsp;DropUp&nbsp;<span class="caret"></span>
  								</button>
  										<ul class="dropdown-menu">
  											<li><a href="#"><span class="text-info">个人信息</span></a></li>
  											<li><a href="#"><span class="text-info">个人设置</span></a></li>
  											<li class="divider"></li>
  											<li><a href="#"><span class="text-info">登出</span></a></li>
  										</ul>
  						</div>
  					</div>
  			</div>
  	</div>
  	
  	
  	

  </body>
</html>